﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using JXT.PrimaryKey.Batman.Domain.Repositories;
using JXT.PrimaryKey.Batman.Domain.Quotation.Models;
using JXT.PrimaryKey.Batman.Domain.Specifications;

namespace JXT.PrimaryKey.Batman.Domain.Quotation.Repositories
{
    public interface IMarketStatisticStatusRepository : IReadRepository<MarketStatisticStatus, int>, IWriteRepository<MarketStatisticStatus, int>,
         ISpecificationRepository<MarketStatisticStatus>
    {
        /// <summary>
        /// 根据相关的条件查询"数据更新状态"的信息
        /// </summary>
        /// <param name="specification">条件对象</param>
        /// <returns>状态对象</returns>
        MarketStatisticStatus GetMarketstatisticstatus(ISpecification<MarketStatisticStatus> specification);

        /// <summary>
        /// 根据时间和类型
        /// </summary>
        /// <param name="markettype">市场类型</param>
        /// <param name="timesort">日，周，月类型</param>
        /// <param name="dt">更新时间</param>
        /// <returns>状态对象</returns>
        MarketStatisticStatus GetMarketstatisticstatus(MarketType markettype, TimeSortType timesort, DateTime dt);
    }
}
